import { http } from "../../utils/http";
// 内销领用功能--获取最大领用单号
export const getMaxOutStockApplyId = () => {
  return http.request("get", "/box/getMaxOutStockApplyId");
};

// 内销领用功能--新增领用申请单
export const insertOutStockApply = (data) => {
  return http.request("put", "/box/insertOutStockApply" ,{data}   );
};
export const webOutStockApplyPrintPDF = (data) => {
  return http.request("post", "/box/outStockApplyPrintPDF" ,{data}   );
};
export const searchCustomerPurchaseOrderDetails = (data) => {
  return http.request("post", "/box/searchCustomerPurchaseOrderDetails" ,{data}   );
};

// 木箱领用明细查询--获取所有领用信息
export const getOutStockApply = (data) => {
  return http.request("post", "/box/getOutStockApply",{data}  );
};
// 木箱领用明细查询--更新领用信息
export const updateOutStockApply = () => {
  return http.request("post", "/box/updateOutStockApply");
};
// 木箱领用明细查询--删除领用信息
export const DeleteOutStockApply = () => {
  return http.request("delete", "/box/DeleteOutStockApply");
};
// 木箱领用明细查询--查询订单信息
export const searchOutStockApply = () => {
  return http.request("get", "/box/searchOutStockApply");
};
